package com.blitscreen.utils.monitor 
{
	import com.blitscreen.render.PostProcessPass;
	import com.bourre.structures.Range;
	import com.kairos.engine.RTEvent;		

	/**
	 * @author Cedric Nehemie
	 */
	public class AveragePostProcessTimeField extends AbstractAveragePostProcessPassMonitorField 
	{
		public function AveragePostProcessTimeField ( postProcessPass : PostProcessPass, 
													  name : String = "Average Post-process time",
													  dr : Range = null, 
													  col : Number = NaN )
		{
			super( postProcessPass, name, 0, "ms", dr, 50, col );
		}
		
		override public function registerValue ( e : RTEvent ) : void
		{
			_registerValue( _oPostProcessPass.getLastPostProcessTime() );
		}
	}
}
